import { createRouter, createWebHistory } from 'vue-router'
import Layout from "@/components/Layout.vue";

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: Layout,
      redirect: '/homeView',
      children: [{
          path: "/homeView",
          name: "Home",
          component: () => import("@/views/HomeView.vue")
        }
      ]
    },
  ],
})

export default router
